﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartSpace.News
{
    public interface INewsService
    {
        ServiceResult SaveArticle(Article article);

        ServiceResult DeleteArticle(Guid id);

        SingleResult<Article> GetArticle(Guid id);

        ServiceResult SaveCategory(Category category);

        ServiceResult DeleteCategory(Guid id);

        SingleResult<Category> GetCategory(Guid id);

        ListResult<Category> GetCategories();
    }
}
